import request from '@/utils/request'

export const getSwiper=(params)=>{
    return request({
        url:'banner/list',
        params
    })
}
export const addSwiper = (data) => {
    return request({
      url: 'banner/add',
      method: 'POST',
      data
    })
  }
export const delSwiper = (data)=>{
    return request({
        url:`banner/delete/${data}`,
        method:'DELETE',
        data
    })
}